package com.training;

class ExRunnable extends While1 implements Runnable {
public void run() {
System.out.println("Important job running in MyRunnable");
While1.call();
}
}
public class Example_3 {
public static void main (String [] args) throws InterruptedException {


Thread t = new Thread(new ExRunnable());
t.start();
Thread.sleep(1000);
Thread c = new Thread(new ExRunnable());
c.start();
Thread.sleep(1000);
Thread s = new Thread(new ExRunnable());
s.start();
Thread.sleep(1000);
System.out.println("The end");
}
}